package com.mikeli.javacourse.lesson7.datasource01;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 从数据源配置
 */
@Configuration
@ConfigurationProperties(prefix = "slave.db")
@Data
public class SlaveDataSourceConfig {
    private String url;
    private String username;
    private String password;
    private String driverClassName;
}